package planit.controller.impl;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;

import planit.model.Model;

@SuppressWarnings("serial")
public class CommitChangesController extends AbstractAction {
	private Model model;

	public CommitChangesController(Model model) {
		super();
		this.model = model;
	}

	@Override
	public void actionPerformed(ActionEvent arg0) {
		model.getDataHandler().commitAllData(model.getSchedule());
	}
}